function TreeCtrl($scope,$http){
   $http.get('products/category.json').success(function(data){
       $scope.tree=data;
       $scope.selected=function(){
           console.log(this.item.text+'is selected:'+this.$selected);
       };
    });
}
TreeCtrl.$inject = ['$scope', '$http'];
